# -*- coding: utf-8 -*-
from django.conf.urls import url
from django.views.generic.base import TemplateView
from django.contrib.auth.decorators import login_required, permission_required
from . import views

urlpatterns = [
    url(r'^$', views.WikiListView.as_view(), name='home'),
    url(r'^item/(?P<slug>[-\w]+)/$', views.WikiDetailView.as_view(), name='detail'),
    url(r'^item/(?P<slug>[-\w]+)/delete/$', views.WikiDeleteView.as_view(), name='delete'),
    url(r'^new/$', views.WikiNewView.as_view(), name='new'),
    url(r'^test/$', views.TestView.as_view(), name='test'),
]
